import 'package:get/get.dart';
import 'package:library_base/route/i_router.dart';
import 'package:library_base/route/middleware/login_middleware.dart';
import 'package:library_base/route/routers.dart';
import 'package:module_dispatcher/page/dispatcher_main_controller.dart';
import 'package:module_dispatcher/page/dispatcher_main_page.dart';
import 'package:module_dispatcher/page/progress/progress_order_detail/progress_detail_controller.dart';
import 'package:module_dispatcher/page/progress/progress_order_detail/progress_detail_page.dart';

class DispatcherRouter implements IRouter {
  @override
  List<GetPage> getPageBuilders() {
    return [
      GetPage(
          name: Routers.dispatcher,
          page: () => const DispatcherMainPage(),
          binding: BindingsBuilder(() {
            Get.lazyPut(() => DispatcherMainController());
          }),
          middlewares: [LoginMiddleware()]),
      GetPage(
          name: Routers.progressDetailPage,
          page: () => const ProgressDetailPage(),
          binding: BindingsBuilder(() {
            Get.lazyPut(() => ProgressDetailController());
          }),
          middlewares: [LoginMiddleware()]),
    ];



  }
}
